import { createApp } from 'vue';
import App from './App.vue';
import '@/assets/styles/style.scss';
import pinia from '@/store';
import router from '@/router';

// import * as ElementPlusIconsVue from '@element-plus/icons-vue'; //引入图标
// import 'element-plus/dist/index.css'; //引入样式

// 引入图表（所有图标见 icon 目录下的 demo_index.html）
// import './assets/icon/iconfont.css';
import './assets/iconfont/iconfont.js';
// 引入 全局注册组件
import PublicComponent from '@/components/componentInstall';

const app = createApp(App);

// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
//   app.component(key, component);
// }
app.use(PublicComponent);
app.use(pinia);
app.use(router);
app.mount('#app');
